package JavaSE.StreamLearning.PrintStream;

import java.io.FileNotFoundException;
import java.io.PrintStream;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream ps = new PrintStream("src\\JavaSE.StreamLearning.PrintStream\\a.txt");
        ps.println("好家伙");
        ps.write('好');
        ps.write('家');
        ps.write('伙');
        ps.write('a');
        ps.close();
    }
}
